{"ast":null,"code":"import { clearFix, textEllipsis } from '../../style';\nconst genListStyle = token => {\n  const {\n    componentCls,\n    antCls,\n    iconCls,\n    fontSize,\n    lineHeight\n  } = token;\n  const itemCls = `${componentCls}-list-item`;\n  const actionsCls = `${itemCls}-actions`;\n  const actionCls = `${itemCls}-action`;\n  const listItemHeightSM = Math.round(fontSize * lineHeight);\n  return {\n    [`${componentCls}-wrapper`]: {\n      [`${componentCls}-list`]: Object.assign(Object.assign({}, clearFix()), {\n        lineHeight: token.lineHeight,\n        [itemCls]: {\n          position: 'relative',\n          height: token.lineHeight * fontSize,\n          marginTop: token.marginXS,\n          fontSize,\n          display: 'flex',\n          alignItems: 'center',\n          transition: `background-color ${token.motionDurationSlow}`,\n          '&:hover': {\n            backgroundColor: token.controlItemBgHover\n          },\n          [`${itemCls}-name`]: Object.assign(Object.assign({}, textEllipsis), {\n            padding: `0 ${token.paddingXS}px`,\n            lineHeight,\n            flex: 'auto',\n            transition: `all ${token.motionDurationSlow}`\n          }),\n          [actionsCls]: {\n            [actionCls]: {\n              opacity: 0\n            },\n            [`${actionCls}${antCls}-btn-sm`]: {\n              height: listItemHeightSM,\n              border: 0,\n              lineHeight: 1,\n              // FIXME: should not override small button\n              '> span': {\n                transform: 'scale(1)'\n              }\n            },\n            [`\n              ${actionCls}:focus,\n              &.picture ${actionCls}\n            `]: {\n              opacity: 1\n            },\n            [iconCls]: {\n              color: token.colorTextDescription,\n              transition: `all ${token.motionDurationSlow}`\n            },\n            [`&:hover ${iconCls}`]: {\n              color: token.colorText\n            }\n          },\n          [`${componentCls}-icon ${iconCls}`]: {\n            color: token.colorTextDescription,\n            fontSize\n          },\n          [`${itemCls}-progress`]: {\n            position: 'absolute',\n            bottom: -token.uploadProgressOffset,\n            width: '100%',\n            paddingInlineStart: fontSize + token.paddingXS,\n            fontSize,\n            lineHeight: 0,\n            pointerEvents: 'none',\n            '> div': {\n              margin: 0\n            }\n          }\n        },\n        [`${itemCls}:hover ${actionCls}`]: {\n          opacity: 1,\n          color: token.colorText\n        },\n        [`${itemCls}-error`]: {\n          color: token.colorError,\n          [`${itemCls}-name, ${componentCls}-icon ${iconCls}`]: {\n            color: token.colorError\n          },\n          [actionsCls]: {\n            [`${iconCls}, ${iconCls}:hover`]: {\n              color: token.colorError\n            },\n            [actionCls]: {\n              opacity: 1\n            }\n          }\n        },\n        [`${componentCls}-list-item-container`]: {\n          transition: `opacity ${token.motionDurationSlow}, height ${token.motionDurationSlow}`,\n          // For smooth removing animation\n          '&::before': {\n            display: 'table',\n            width: 0,\n            height: 0,\n            content: '\"\"'\n          }\n        }\n      })\n    }\n  };\n};\nexport default genListStyle;","map":{"version":3,"names":["clearFix","textEllipsis","genListStyle","token","componentCls","antCls","iconCls","fontSize","lineHeight","itemCls","actionsCls","actionCls","listItemHeightSM","Math","round","Object","assign","position","height","marginTop","marginXS","display","alignItems","transition","motionDurationSlow","backgroundColor","controlItemBgHover","padding","paddingXS","flex","opacity","border","transform","color","colorTextDescription","colorText","bottom","uploadProgressOffset","width","paddingInlineStart","pointerEvents","margin","colorError","content"],"sources":["/data/messenger.client/node_modules/antd/es/upload/style/list.js"],"sourcesContent":["import { clearFix, textEllipsis } from '../../style';\nconst genListStyle = token => {\n  const {\n    componentCls,\n    antCls,\n    iconCls,\n    fontSize,\n    lineHeight\n  } = token;\n  const itemCls = `${componentCls}-list-item`;\n  const actionsCls = `${itemCls}-actions`;\n  const actionCls = `${itemCls}-action`;\n  const listItemHeightSM = Math.round(fontSize * lineHeight);\n  return {\n    [`${componentCls}-wrapper`]: {\n      [`${componentCls}-list`]: Object.assign(Object.assign({}, clearFix()), {\n        lineHeight: token.lineHeight,\n        [itemCls]: {\n          position: 'relative',\n          height: token.lineHeight * fontSize,\n          marginTop: token.marginXS,\n          fontSize,\n          display: 'flex',\n          alignItems: 'center',\n          transition: `background-color ${token.motionDurationSlow}`,\n          '&:hover': {\n            backgroundColor: token.controlItemBgHover\n          },\n          [`${itemCls}-name`]: Object.assign(Object.assign({}, textEllipsis), {\n            padding: `0 ${token.paddingXS}px`,\n            lineHeight,\n            flex: 'auto',\n            transition: `all ${token.motionDurationSlow}`\n          }),\n          [actionsCls]: {\n            [actionCls]: {\n              opacity: 0\n            },\n            [`${actionCls}${antCls}-btn-sm`]: {\n              height: listItemHeightSM,\n              border: 0,\n              lineHeight: 1,\n              // FIXME: should not override small button\n              '> span': {\n                transform: 'scale(1)'\n              }\n            },\n            [`\n              ${actionCls}:focus,\n              &.picture ${actionCls}\n            `]: {\n              opacity: 1\n            },\n            [iconCls]: {\n              color: token.colorTextDescription,\n              transition: `all ${token.motionDurationSlow}`\n            },\n            [`&:hover ${iconCls}`]: {\n              color: token.colorText\n            }\n          },\n          [`${componentCls}-icon ${iconCls}`]: {\n            color: token.colorTextDescription,\n            fontSize\n          },\n          [`${itemCls}-progress`]: {\n            position: 'absolute',\n            bottom: -token.uploadProgressOffset,\n            width: '100%',\n            paddingInlineStart: fontSize + token.paddingXS,\n            fontSize,\n            lineHeight: 0,\n            pointerEvents: 'none',\n            '> div': {\n              margin: 0\n            }\n          }\n        },\n        [`${itemCls}:hover ${actionCls}`]: {\n          opacity: 1,\n          color: token.colorText\n        },\n        [`${itemCls}-error`]: {\n          color: token.colorError,\n          [`${itemCls}-name, ${componentCls}-icon ${iconCls}`]: {\n            color: token.colorError\n          },\n          [actionsCls]: {\n            [`${iconCls}, ${iconCls}:hover`]: {\n              color: token.colorError\n            },\n            [actionCls]: {\n              opacity: 1\n            }\n          }\n        },\n        [`${componentCls}-list-item-container`]: {\n          transition: `opacity ${token.motionDurationSlow}, height ${token.motionDurationSlow}`,\n          // For smooth removing animation\n          '&::before': {\n            display: 'table',\n            width: 0,\n            height: 0,\n            content: '\"\"'\n          }\n        }\n      })\n    }\n  };\n};\nexport default genListStyle;"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,YAAY,QAAQ,aAAa;AACpD,MAAMC,YAAY,GAAGC,KAAK,IAAI;EAC5B,MAAM;IACJC,YAAY;IACZC,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